<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ page import="java.util.ResourceBundle" %>


<%
	int tab;
	tab=(Integer)request.getAttribute("tab");
	
	//if tab no existe => tab = 1
	ResourceBundle rs = ResourceBundle.getBundle("config");
	String url = rs.getString("application.url");
	String url2 = rs.getString("application.url2");
%>
<fb:header>Welcome to Bundundu</fb:header>

<fb:tabs>

	<fb:tab-item href='<%=url%>index' title='Home' <c:if test="${tab==1}">selected='true'</c:if> />
	<fb:tab-item href='<%=url%>showcalendars' title='My Calendars' <c:if test="${tab==3}">selected='true'</c:if>  />
	<fb:tab-item href='<%=url%>newcalendarevent' title='New Event' <c:if test="${tab==2}">selected='true'</c:if>  />
	<fb:tab-item href='<%=url%>events' title='Facebook Events' <% if(tab==5) out.println("selected='true'");%>/>
	<fb:tab-item href='<%=url%>sharecalendars' title='Share Calendars' <c:if test="${tab==6}">selected='true'</c:if> />
	<fb:tab-item href='<%=url%>invite' title='Invite Friends' <c:if test="${tab==4}">selected='true'</c:if> />

</fb:tabs>


